package top.ljlgithub.api.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @ClassName
 * @Description TODO
 * @Author L1470
 * @Date 2021/4/25 16:17
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("sp_manager")
public class Manager {
    @TableField("mg_id")
    private Integer id;//用户id
    private Integer role_id;
    @TableField("mg_name")
    private String username;//用户名
    @TableField("mg_pwd")
    @JsonIgnore
    private String pwd;//密码
    @TableField("mg_mobile")
    private String mobile;//用户手机号
    @TableField("mg_email")
    private String email;//用户邮箱
    @TableField("mg_state")
    private Boolean state;//用户状态
    @TableField("mg_salt")
    @JsonIgnore
    private String salt;//用户盐
    //用于返回token
    private String token;
}


